package com.example.student.service.impl;
import com.example.student.mapper.LoginMapper;
import com.example.student.pojo.Admin;
import com.example.student.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 34082
 */
@Service
public class LoginServiceImpl  implements LoginService {

    private LoginMapper loginMapper;

    @Autowired
    public void setLoginMapper(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }
    @Override
    public Admin login(String username, String password) {
        return loginMapper.login(username,password);
    }
}
